package com.yh.correct.dao;

import java.util.List;
import java.util.Map;

import com.yh.correct.model.InterviewPersonnel;

/**
 * 
 * 走访登记DAO接口
 * @author swj
 *
 */
public interface IInterviewPersonnelMapper {

	/**
	 * 查询走访登记信息详情
	 * @param interviewpersonnel
	 * @return
	 * @throws Exception
     */
	Map getInterviewPersonnel(InterviewPersonnel interviewpersonnel) throws Exception;

	/**
	 * 增加走访登记信息
	 * @param interviewpersonnel
	 * @return
	 * @throws Exception
     */
	Integer addInterviewPersonnel(InterviewPersonnel interviewpersonnel) throws Exception;

	/**
	 * 根据校正人员查找走访人员
	 * @return
	 * @throws Exception
     */
	List<Object> getWorkByCor(int pid) throws Exception;

	/**
	 * 删除走访登记信息
	 * @param id
	 * @return
	 * @throws Exception
     */
	Integer delInterviewPersonnel(int id) throws Exception;
	/**
	 * 批量删除走访信息
	 * @param list
	 * @return
	 * @throws Exception
	 */
	int deleteBatch(List<Integer> list) throws Exception;
	/**
	 * 修改走访登记信息
	 * @param interviewpersonnel
	 * @return
	 * @throws Exception
     */
	Integer editInterviewPersonnel(InterviewPersonnel interviewpersonnel) throws Exception;

	/**
	 * 模糊查询走访登记信息列表
	 * @param interviewpersonnel
	 * @return
	 * @throws Exception
     */
	List<Object> getLikeInterviewPersonnel(Map<String, Object> interviewpersonnel) throws Exception;

	/**
	 * 模糊查询走访登记信息数量
	 * @param interviewpersonnel
	 * @return
	 * @throws Exception
     */
	Integer getLikeInterviewPersonnelCount(Map<String,Object> interviewpersonnel) throws Exception;

	/**
	 * 查询所有矫正人员
	 * @return
	 * @throws Exception
     */
	List<Object>getAllCorr() throws Exception;

	/**
	 * 查询所有工作人员
	 * @param id
	 * @return
	 * @throws Exception
     */
	List<Object>getByIdPer(int id) throws Exception;

	/**
	 * 导出excel
	 * @return
	 * @throws Exception
     */
	List<Map<String,Object>> getAllRuleBreak() throws Exception;
}